<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<html>
<head>
<link rel="stylesheet" type="text/css"
	href="css/jquery.datetimepicker.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.datetimepicker.js"></script>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录成功</title>
</head>


<body>


	<div style="margin: 0 auto; padding-top: 100px;" align="center">
		<h3>${user.username }，恭喜您，登录成功！</h3>
		<a href="doLogout.do">退出登录</a>
	</div>

	<h1 id="con" align="center">卡口数据统计</h1>
	<script type="text/javascript">
		var title = document.getElementById("con");
		title.style.color = "white";
		title.style.background = "black";
		title.style.fontSize = "20";
		title.style.width = "300";
		title.style.height = "200";
		function pattern() {
			var pattern = document.getElementById("text-align:right;")
		}
	</script>

	<form action="SelectSjbd.do">

		<script type="text/javascript">
			$(function() {
				var ex1 = $('#kssj');
				ex1.datetimepicker();
				<!--
				$('#kssj').datetimepicker(
						ex1.datetimepicker('setDate', (new Date())));
				-->
				var ex2 = $('#jssj');
				ex2.datetimepicker();
				<!--
				$('#jssj').datetimepicker(
						ex8.datetimepicker('setDate', (new Date())));
				-->
			});
		</script>

		<table width="700" height="200" align="center">
			<tr>
				<th>
					<div>
						<p>
							开始日期：<input type="text" name="kssj" value="2015/11/22 10:28" id="kssj" />
						</p>
					</div>
				</th>
				<th>
					<div>
						<p>
							结束日期：<input type="text" name="jssj" value="2015/11/26 15:00" id="jssj" />
						</p>
					</div>
				</th>
				<th>
					<div style="text-align: center;">
						<input type="submit" name="submit" value="查询"></input>
					</div>
				</th>
			</tr>
		</table>
	</form>


	<table width="650" border="1" align="center">
		<tr>
			<td>单位名称</td>
			<td>开始时间</td>
			<td>结束时间</td>
			<td>生产库</td>
			<td>中间库</td>
			<td>误差数</td>
			<td>误差比</td>
		</tr>
		<c:forEach items="${list}" var="bocom">
			<tr>
				<td><c:out value="${bocom.dwmc}" /></td>
				<td><fmt:formatDate value="${bocom.kssj}" type="both" /></td>
				<td><fmt:formatDate value="${bocom.jssj}" type="both" /></td>
				<td><c:out value="${bocom.sck}" /></td>
				<td><c:out value="${bocom.zjk}" /></td>
				<td><c:out value="${bocom.wcs}" /></td>
				<td><c:out value="${bocom.wcb}" /></td>
			</tr>
		</c:forEach>

	</table>


</body>
</html>